package com.jurenzhao.partssystem.accessories.analysis.controller;

import com.jurenzhao.partssystem.accessories.analysis.entity.Temp_Piece_Info;
import com.jurenzhao.partssystem.accessories.analysis.service.Temp_Piece_InfoService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/temp_Piece")
public class Temp_Piece_InfoContrller {


    @Resource
    private Temp_Piece_InfoService temp_piece_infoService;

    @RequestMapping("/list")
    public  String list(Model model){
        List<Temp_Piece_Info>list=temp_piece_infoService.findAll();
        model.addAttribute("list",list);
        return "";
    }

    @RequestMapping("/delete/{pieceNo}")
    public String preAdd(@PathVariable("pieceNo")int pieceNo ){

        return "";
    }

    @RequestMapping("")
    public String add(){


        return "";
    }


    public String PreUpdate(Model model, @PathVariable("")int pieceNo){
       return "";
    }



}
